package com.luo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;

/**
 * @author luoqingchen
 * @reate 2022-11-20-16:04
 */
public class Inner {

    private static  Integer age;
    Integer ageq=12;
    public static void main(String[] args) {
        HashMap map=new HashMap();
        map.put("1","haha");
        map.put("2","haha");
        map.put("3","haha");
        Set set = map.entrySet();
        set.forEach(System.out::println);
        System.out.println("============================");
        Iterator iterator = set.iterator();
        while (iterator.hasNext()){
         System.out.println(iterator.next());
        }
        System.out.println("============================");
        Set set1 = map.keySet();
        for (Object o : map.keySet()){
            System.out.println(map.get(o));
        }

        set1.forEach(System.out::println);
    }
    public void asd(){
        System.out.println(age);
    }
}


